<template>
  <div class="type-a-w">
    <div class="title block">
      <span>{{ item.title }}</span>
    </div>

    <div class="msg-line">
      <div class="content">
        <span class="name">{{ item.name }}</span>
        <span class="q1">/</span>
        <span class="age">{{ item.age }}</span>
        <span class="q2">/</span>
        <span class="gender">{{ item.gender }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "TypeA",
  props: ['item']
}
</script>

<style lang="scss" scoped>
@import "src/assets/common";
.type-a-w {

  position: relative;
  width: 100%;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 20px;
  color: rgb(52, 72, 93);

  .left {
    flex: 1;
    background: $c1;
  }


  .block {
    display: flex;
    align-items: center;
    background: rgb(52, 72, 93);
    height: 100%;
  }

  .title {

    background: $c2;
    color: white;
    padding: 0 20px 0 20px;


    & > span, .q1, .q2 {
    }
  }

  .msg-line {
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: white;
    color: $c2;
    line-height: 1;

    & > .content, .q1, .q2 {
    }

    .name {
      font-size: 20px;
    }

    .q1 {
      font-size: 20px;
      margin-left: 10px;
    }

    .q2 {
      font-size: 17px;
      margin-left: 10px;

    }

    .age, .gender {

      font-size: 17px;
      padding-left: 10px;
    }
  }
}

</style>